package com.nexus.cloud.feign;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * Feign配置
 *
 * @Date 2025/9/19 02:58
 * @Author luzhengning
 **/
@Configuration
@EnableFeignClients(basePackages = "com.nexus.*")
public class NexusCloudFeignConfig {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
